package com.maybach.workflow.core.processor;


import com.maybach.workflow.common.api.WorkFlowContext;
import com.maybach.workflow.common.api.node.BaseNode;

import java.util.List;

/**
 * Created by houenxun on 15/8/13.
 */
public interface IProcessor {
    /**
     * 处理当前结点
     * @param workFlowContext
     */
    boolean runIn(WorkFlowContext workFlowContext);

    /**
     * 处理下一个结点
     * @param workFlowContext
     */
    void runOut(WorkFlowContext workFlowContext);

    /**
     * 获取接下来得结点
     * @param workFlowContext
     * @return
     */
    List<BaseNode> getNextNodes(WorkFlowContext workFlowContext);
}